import {axiosJson,axios} from '../request';

import {ver} from '../config'

/**
 * 获取openId
 * @url /user/getWechatOpenId
 * @method GET
 * @data {
 *    @code  code码
 * }
 **/
let GetOpenId=(data={})=>{
  // return axios(`${ver[0]}/user/getWechatOpenId`,"GET",{...data})
  return axios(`noauth/v1/user/getWechatOpenId`,"GET",{...data})
}

let GetValidateLogin=(data={})=> {
  return axios(`noauth/v1/user/validateLogin`,"GET",{...data})
  // return axios(`${ver[0]}/user/validateLogin`,"GET",{...data})
}

module.exports = {
  GetOpenId,
  GetValidateLogin
};